package com.hao.tool.extra.poi.jfree;

/**
 * description
 *
 * @author RuiHaoZ on Hgits.cn
 * @date 2018/8/23 16:39
 */
public class ArrayUtil {

    public static double[][] newArray(int monthEnd) {
        double[][] target = null;
        switch (monthEnd) {
            case 1:
                target = new double[][]{
                        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
                        {0}
                };
                break;
            case 2:
                target = new double[][]{
                        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
                        {0, 0}

                };
                break;
            case 3:
                target = new double[][]{
                        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
                        {0, 0, 0}
                };
                break;
            case 4:
                target = new double[][]{
                        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
                        {0, 0, 0, 0}
                };
                break;
            case 5:
                target = new double[][]{
                        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
                        {0, 0, 0, 0, 0}
                };
                break;
            case 6:
                target = new double[][]{
                        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
                        {0, 0, 0, 0, 0, 0}
                };
                break;
            case 7:
                target = new double[][]{
                        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
                        {0, 0, 0, 0, 0, 0, 0}
                };
                break;
            case 8:
                target = new double[][]{
                        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
                        {0, 0, 0, 0, 0, 0, 0, 0}
                };
                break;
            case 9:
                target = new double[][]{
                        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
                        {0, 0, 0, 0, 0, 0, 0, 0, 0}
                };
                break;
            case 10:
                target = new double[][]{
                        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
                        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
                };
                break;
            case 11:
                target = new double[][]{
                        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
                        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
                };
                break;
            default:
                target = new double[][]{
                        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
                        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
                };
                break;

        }
        return target;
    }

}
